package com.mapper;

import java.util.List;

import com.bean.StockApply;

public interface StockApplyMapper {
	int deleteByPrimaryKey(Integer stockApplyId);

	int insert(StockApply record);

	int insertSelective(StockApply record);
	
	int updateSetFinishMinusOne(StockApply stockApply);

	StockApply selectByPrimaryKey(Integer stockApplyId);

	List<StockApply> selectByCategory(String category);
	
	List<StockApply> selectByState(int state);
	
	List<StockApply> selectByStateAndCategory(StockApply stockApply);
	
	List<StockApply> selectByFinishAndCategory(StockApply stockApply);
	
	List<StockApply> selectByFinish(int finish);

	int exameByPrimaryKey(StockApply record);

	int updateByPrimaryKeySelective(StockApply record);

	int updateByPrimaryKey(StockApply record);
}